﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IndoorPosition.Server.Application
{
    /// <summary>
    /// 地理数据输入数据传输对象
    /// </summary>
    public class ConfigurationInputDto
    {
        /// <summary>
        /// 参数名称
        /// </summary>
        [Required(ErrorMessage = "参数名称不可为空")]
        [MaxLength(50, ErrorMessage = "参数名称不能长于50位")]
        public string Name
        {
            get;
            set;
        }

        /// <summary>
        /// 参数关键字
        /// </summary>
        [Required(ErrorMessage = "参数关键字不可为空")]
        [MaxLength(50, ErrorMessage = "参数关键字不能长于50位")]
        public string Key
        {
            get;
            set;
        }

        /// <summary>
        /// 参数值
        /// </summary>
        [Required(ErrorMessage = "参数值不可为空")]
        [MaxLength(50, ErrorMessage = "参数值不能长于50位")]
        public string Value
        {
            get;
            set;
        }
    }
}
